﻿using Coldairarrow.Business;
using Coldairarrow.Entity;
using Coldairarrow.Entity.SourceMaterial;
using Coldairarrow.IBusiness.SourceMaterial;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.SourceMaterial
{
    [Route("/SourceMaterial/[controller]/[action]")]
    public class MaterialController : BaseApiController
    {
        #region DI

        public MaterialController(IBTB_MaterialBusiness Material)
        {
            _MaterialBus = Material;
        }

        private IBTB_MaterialBusiness _MaterialBus { get; }

        #endregion DI
        /// <summary>
        /// 素材库
        /// </summary>
        /// <returns></returns>
        [NoCheckJWT]
        public Material GetData(string id)
        {
            return _MaterialBus.GetData(id);
        }
    }
}